package com.rahwi.rahwi_server.Service.Interface;

import com.rahwi.rahwi_server.Entity.Post;
import com.rahwi.rahwi_server.vo.data.BasePost;
import com.rahwi.rahwi_server.vo.params.PageParams;

import java.util.List;

/**
 * @Interface IPostService
 * @Description
 * @Date 2021/12/8 19:12
 * @Autor mjw
 * @Version 1.0
 */
public interface IPostService {

    public List<Post> getPostByPage(PageParams pageParams);

    public Post getPostById(int pid);

    public List<Post> getPostByTagAndPage(String tag, PageParams pageParams);

    public void addPost(Post post);

    public void modifyPost(Post post);

    public void deletePostById(int pid);

    public List<Post> getPostByUidAndPage(int uid, PageParams pageParams);
}
